<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      Cogl-1.22.6
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;25.&nbsp;X Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="cairomm.html" title=
          "Cairomm-1.12.2">Prev</a>
          <p>
            Cairomm-1.12.2
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="clutter.html" title=
          "Clutter-1.26.4">Next</a>
          <p>
            Clutter-1.26.4
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="lib.html" title=
          "Chapter&nbsp;25.&nbsp;X Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="cogl" name="cogl"></a>Cogl-1.22.6
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to Cogl
        </h2>
        <p>
          <span class="application">Cogl</span> is a modern 3D graphics API
          with associated utility APIs designed to expose the features of 3D
          graphics hardware using a direct state access API design, as
          opposed to the state-machine style of OpenGL.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "http://ftp.gnome.org/pub/gnome/sources/cogl/1.22/cogl-1.22.6.tar.xz">
                http://ftp.gnome.org/pub/gnome/sources/cogl/1.22/cogl-1.22.6.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download (FTP): <a class="ulink" href=
                "ftp://ftp.gnome.org/pub/gnome/sources/cogl/1.22/cogl-1.22.6.tar.xz">
                ftp://ftp.gnome.org/pub/gnome/sources/cogl/1.22/cogl-1.22.6.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 7bcc01edb5462d4d08d01bf893feddb0
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 1.7 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 61 MB (add 2 MB for tests)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.3 SBU (Using parallelism=4; add 0.6
                SBU for tests)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Additional Downloads
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Required patch: <a class="ulink" href=
                "http://www.linuxfromscratch.org/patches/blfs/svn/cogl-1.22.6-mesa_20_fixes-1.patch">
                http://www.linuxfromscratch.org/patches/blfs/svn/cogl-1.22.6-mesa_20_fixes-1.patch</a>
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Cogl Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="cairo.html" title=
          "Cairo-1.17.2+f93fc72c03e">Cairo-1.17.2+f93fc72c03e</a>, <a class=
          "xref" href="gdk-pixbuf.html" title=
          "gdk-pixbuf-2.40.0">gdk-pixbuf-2.40.0</a>, <a class="xref" href=
          "glu.html" title="GLU-9.0.1">GLU-9.0.1</a>, <a class="xref" href=
          "mesa.html" title="Mesa-20.0.2">Mesa-20.0.2</a>, <a class="xref"
          href="pango.html" title="Pango-1.44.7">Pango-1.44.7</a>, and
          <a class="xref" href="../general/wayland.html" title=
          "Wayland-1.18.0">Wayland-1.18.0</a>
        </p>
        <h4>
          Recommended
        </h4>
        <p class="recommended">
          <a class="xref" href="../general/gobject-introspection.html" title=
          "gobject-introspection-1.64.0">gobject-introspection-1.64.0</a>
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../multimedia/gst10-plugins-base.html" title=
          "gst-plugins-base-1.16.2">gst-plugins-base-1.16.2</a>, <a class=
          "xref" href="../general/gtk-doc.html" title=
          "GTK-Doc-1.32">GTK-Doc-1.32</a>, <a class="xref" href=
          "../multimedia/sdl.html" title="SDL-1.2.15">SDL-1.2.15</a>, and
          <a class="xref" href="../multimedia/sdl2.html" title=
          "SDL2-2.0.12">SDL2-2.0.12</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/cogl">http://wiki.linuxfromscratch.org/blfs/wiki/cogl</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of Cogl
        </h2>
        <p>
          First fix an issue introduced by mesa-20.x and later:
        </p>
        <pre class="userinput">
<kbd class="command">patch -Np1 -i ../cogl-1.22.6-mesa_20_fixes-1.patch</kbd>
</pre>
        <p>
          Install <span class="application">Cogl</span> by running the
          following commands:
        </p>
        <div class="admon note">
          <img alt="[Note]" src="../images/note.png" />
          <h3>
            Note
          </h3>
          <p>
            This package may occasionally fail when building with multiple
            processors. See <a class="xref" href=
            "../introduction/notes-on-building.html#parallel-builds" title=
            "Using Multiple Processors">Using Multiple Processors</a> for
            more information.
          </p>
        </div>
        <pre class="userinput">
<kbd class="command">autoreconf &amp;&amp;

./configure --prefix=/usr  \
            --enable-gles1 \
            --enable-gles2 \
            --enable-{kms,wayland,xlib}-egl-platform \
            --enable-wayland-egl-server              &amp;&amp;
make</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>make
          check</strong></span>. The tests should be run from an X terminal
          on the hardware accelerated Xorg Server. A few tests will use all
          CPUs in parallel, regardless of parallellism settings.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--enable-gles1</code></em>: This switch
          enables support for OpenGL ES 1.1.
        </p>
        <p>
          <em class="parameter"><code>--enable-gles2</code></em>: This switch
          enables support for OpenGL ES 2.0.
        </p>
        <p>
          <em class=
          "parameter"><code>--enable-{kms,wayland,xlib}-egl-platform</code></em>:
          These switches enable support for KMS, Wayland and Xlib EGL
          platforms. They are required for <span class=
          "application">GNOME</span> Wayland support.
        </p>
        <p>
          <em class=
          "parameter"><code>--enable-wayland-egl-server</code></em>: This
          switch enables <span class="application">Cogl</span>'s Wayland
          Server API which is required for <span class=
          "application">GNOME</span> Wayland support.
        </p>
        <p>
          <code class="option">--enable-cogl-gst</code>: This switch enables
          gstreamer support.
        </p>
        <p>
          <code class="option">--enable-gtk-doc</code>: Use this parameter if
          <span class="application">GTK-Doc</span> is installed and you wish
          to rebuild and install the API documentation.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">None</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libcogl-gles2.so, libcogl-pango.so,
              libcogl-path.so, and libcogl.so, and optional libraries
              libcogl-gst.so and /usr/lib/gstreamer-1.0/libgstcogl.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/include/cogl and
              /usr/share/cogl</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="libcogl-gles2" name=
                    "libcogl-gles2"></a><span class="term"><code class=
                    "filename">libcogl-gles2.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    is the OpenGL ES 2.0 integration library for <span class=
                    "application">Cogl</span>.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libcogl-pango" name=
                    "libcogl-pango"></a><span class="term"><code class=
                    "filename">libcogl-pango.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    is the <span class="application">Pango</span> integration
                    library for <span class="application">Cogl</span>.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libcogl" name="libcogl"></a><span class=
                    "term"><code class="filename">libcogl.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    is an object oriented GL/GLES Abstraction/Utility Layer
                    library.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-03-10 12:37:34 -0500
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="cairomm.html" title=
          "Cairomm-1.12.2">Prev</a>
          <p>
            Cairomm-1.12.2
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="clutter.html" title=
          "Clutter-1.26.4">Next</a>
          <p>
            Clutter-1.26.4
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="lib.html" title=
          "Chapter&nbsp;25.&nbsp;X Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
